<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="500.jsp"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="../admin_css/hotFilmExhibition.css">
    <link rel="stylesheet" href="../admin_css/iconfont/iconfont.css">
    <script type="text/javascript" src="../js/jquery-1.12.4.js"></script>
</head>
<body>
<div class="content">
    <div class="container" style="padding: 0px;width: 100% ;display:"none";">
    <div class="tou"><span class="iconfont icon-dianying1"></span><span style="font-weight: bold; margin-left: 6px;">热门电影下架管理</span></div>
    <table class="table">
        <caption><span id="sum" style="margin-left: 30px;">共${sessionScope.offTheShelfFilmsSize}条</span></caption>
       
        <thead>
        <tr>
            <th>编号</th>
            <th>电影名称</th>
            <th>电影类型</th>
            <th>导演</th>
            <th>拍摄地</th>
            <th>主演</th>
            <th>首映时间</th>
            <th>片长</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody id="table">
        	<c:forEach items="${sessionScope.offTheShelfFilms }"  begin="0" end="6"  var="offTheShelfFilm">
        			<tr>
		                <td id="filmId1" class="filmId">${offTheShelfFilm.filmId}</td>
		                <td id="filmName1">${offTheShelfFilm.filmName}</td>
		                <td id="filmCategory1">
		                	<c:forEach items="${offTheShelfFilm.filmTypes}" var="filmtype">
		                	 	${filmtype.typeName}
		                	</c:forEach>
		                </td>
		                <td id="director1">
		                	<c:forEach items="${offTheShelfFilm.directors}" var="director">
		                	 	${director.dirName}
		                	</c:forEach>
		                </td>
		                <td id="screenwriters1">${offTheShelfFilm.filmPlace}</td>
		                <td id="star1">
		                	<c:forEach items="${offTheShelfFilm.performers}" begin="1" end="2" var="performer">
		                	 	${performer.perName}
		                	</c:forEach>
		                </td>
		                <td id="filmTime1">${fn:substring(offTheShelfFilm.filmShowTime,0,10)}</td>
		                <td id="playTime1">${offTheShelfFilm.filmTime}</td>
		                <td>
		                    <button id="but6" type="button" class="btn btn-default" style="border:1px solid red;"><span>上架</span></button>
		                </td>
           			 </tr>
        
        	</c:forEach>
        
        </tbody>
    </table>
    <!--分页-->
    <div id="fenye" class="panel-footer" style="text-align: center; display: block;">
        <nav style="height: 35px;">
            <ul class="pagination" style="margin-top:0px;">
               <c:if test="${fn:length(sessionScope.offTheShelfFilms) != 0}">
	                <li id="Previous" class="disabled" style="cursor: pointer;" flag="">
	                      <span aria-hidden="true">«</span>    
	                </li>
				</c:if>
              
                <c:forEach items="${sessionScope.offTheShelfFilm}"  begin="0" end="${sessionScope.offTheShelfFilmsSize<=7?0:(sessionScope.offTheShelfFilmsSize/7)}" varStatus="temp">
                	   <li flag="${temp.count}" class="${param.flag == temp.count?'active':'' } data"><a href="${pageContext.request.contextPath}/offTheShelifhotFilmPage.do?page=${temp.count}&isDelete=1">${temp.count }</a></li>
                </c:forEach>
                
                  <c:if test="${fn:length(sessionScope.offTheShelfFilms) != 0}">
	                <li id="li" style="cursor: pointer;">             
	                      <span aria-hidden="true">»</span>
	                </li>
	              </c:if>
            </ul>
        </nav>
        <div class="clearfix"></div>
    </div>
    <div align="center" style="margin-bottom: 10px;padding-top: 10px; border-top: 1px solid #b3a6a6;">
        <button id="butupdate" type="button" class="btn btn-success" style=" width: 200px; height: 40px; line-height: 30px;">
            <span  style="margin-right: 6px; color:white; font-size: 16px;">√</span>
            <span id="is" style="color:white; font-weight: 800;font-size: 16px;">查看上架电影</span>
        </button>
    </div>
</div>
</div>
</body>
<script type="text/javascript" src="../admin_js/offTheShelfFilm.js"></script>
</html>